<?php 
$sysApps = new sysApps();
$checkBankInfo = $sysApps->checkBankInfo($_SESSION['login_id']);
$last_login = $sysApps->userInfo($_SESSION['login_id'], 'last_login');
$last_login =  date('d M Y', strtotime($last_login));
?>


<?php if ($checkBankInfo == '1') {?>
<div class="alert">Please update your bank info</div>
<?php }?>
<div class="overall">
    
    <div class="sect_keys">
        <h1>Entry</h1>
        
        <div class="node_box_keys alignCenter">
            <h2 class="textAlignCenter">Total Keys</h2>
            <div class="total_keys"><?php echo $_SESSION["user_total_key"];?></div>
        </div>
        
    </div>
    <div class="sect_incomes">
        <h1>Income</h1>
        <?php 
        	$count=0;
	        foreach ($_SESSION['user_key_income_list'] as $child)
	        {
	        	if($count > 1)
	        	{
	        		echo "<div class='node_box_income'>";
	        		echo "<div class='node_id'>".$child->getMgmId()."</div>";
	        		echo "<div class='node_total_income'>".$child->getChild()."</div>";
	        		echo "</div>";
	        	}
	        	$count++;
	        }
        
        
        ?>
        
    </div>
    <div class="clearFloat"></div>
</div>
